package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.ProductColorDao;
import com.ouheng.shop.domain.ProductColorDO;
import com.ouheng.shop.service.ProductColorService;



@Service
public class ProductColorServiceImpl implements ProductColorService {
	@Autowired
	private ProductColorDao productColorDao;
	
	@Override
	public ProductColorDO get(Long id){
		return productColorDao.get(id);
	}
	
	@Override
	public List<ProductColorDO> list(Map<String, Object> map){
		return productColorDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return productColorDao.count(map);
	}
	
	@Override
	public int save(ProductColorDO productColor){
		return productColorDao.save(productColor);
	}
	
	@Override
	public int update(ProductColorDO productColor){
		return productColorDao.update(productColor);
	}
	
	@Override
	public int remove(Long id){
		return productColorDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return productColorDao.batchRemove(ids);
	}
	
}
